import Relation from "castle-koa/dist/lib/relation";
import { R }from 'castle-koa/dist/utils/db'
//用户
/**,
   //用户ID UID BIGINT ,
   //用户账号 Count CHAR(250) ,
   //用户密码 Password CHAR(250) ,
   //用户昵称 Nick CHAR(50) ,
   //用户性别 Sex TINYINT(1) ,
   //用户年龄 Age INT ,
   //用户电话 Phone CHAR(11) ,
   //用户邮箱 Email CHAR(50) ,
   //身份证号 IDCard CHAR(18) ,
   //注册时间 CTime TIMESTAMP ,
   //状态 Status TINYINT(1) ,
   */
export default class User extends Relation{
    _one={
        Uglink: {
            name:'Uglink', 
            table:'Uglink', 
            pk:'UID', 
            fk:'UID', 
            relation:R(this._ctx, 'Uglink')
        },
        Nav:{
            name:'Nav',
            table:'Nav',
            pk:'UID',
            fk:'UID'
        }
    }
}
